<?php $this->load->view('common/head');?>
<?php $this->load->view('common/navbar');?>
<form class="form-inline" method="GET" action="<?php echo $this->input->server('REQUEST_URI'); ?>" name="queryForm" id="queryForm">
<input type="hidden" name="c" id="c" value="Main">
<input type="hidden" name="m" id="m" value="storeTotal">
  <div class="form-group">
    <label for="year">所属年份：</label>
    <select class="form-control" id="year" name="year">
      <option value="">请选择</option>
    </select>
  </div>
 <div class="form-group">
  <button type="submit" class="btn btn-default btn-primary">查询</button>
  </div>
</form>
<?php
	$fieldList = array(
		'fixedMoney'=>'双月额度',
		'budgetApply'=>'预算申请金额',
		'budgetAudit'=>'预算审核金额',
		'settleApply'=>'结算申请总费用',
		'settleAudit'=>'结算审核金额',
		'canSettleMoney'=>'可结算金额',
		'score'=>'活动评比系数',
		'settleMoney'=>'结算金额',
		'buBudgetApply'=>'补报预算申请金额',
		'buBudgetAudit' => '补报预算审核金额',
		'buSettleApply' => '补报结算申请金额',
		'buSettleAudit' => '补报结算审核金额',
		'buCanSettleMoney' => '补报可结算金额',
		'buLoseMoney' => '补报扣罚金额',
		'buSettleMoney' => '补报结算金额',
		'finalSettleMoney' => '最终结算金额'
	);
?>
<div class="col-md-12" style="margin-top: 10px;">
  <table class="table table-bordered table-condensed">
    <thead class="text-center">
      <tr>
        <th class="bg-primary text-center">基金类型</th>
        <th class="bg-primary text-center">费用流程</th>
        <?php foreach ($timeUnitList as $key => $value) { ?>
        <th class="bg-primary text-center"><?php echo $value; ?></th>
        <?php } ?>
      </tr>
    </thead>
    <tbody>
        <?php
        $i = 0;
        foreach ($fieldList as $filedKey => $filedName) {
        ?>
      <tr>
        <?php if($i==0){?><td class="text-center" rowspan="<?=count($fieldList)?>">百县强基</td><?php }?>
        <td class="text-center"><?php echo $filedName;?></td>

        <?php foreach ($timeUnitList as $timeK => $timeV) { ?>
        <td class="text-center">
          <?php
          if (isset($singleProcList[$timeK][$filedKey])) {
            //未评分显示文字
            if ($filedKey == 'score') {
              if ((float)$singleProcList[$timeK][$filedKey] == 0) {
                echo '未评分';
              }else{
                echo $singleProcList[$timeK][$filedKey];  
              }
            }else{
              echo $singleProcList[$timeK][$filedKey];
            }
          }
          ?>
        </td>
        <?php
        $i ++;
        } ?>
      </tr>
      <?php }?>
    </tbody>
  </table>
</div>
<script type="text/javascript">
  $(function(){
    loadYearList('year',<?=$year?>);
  });
</script>
<?php $this->load->view('common/foot');?>